package hbase.common;

import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.util.Bytes;

public class MyPut extends Put {
    
    public MyPut(String row) {
        super(Bytes.toBytes(row));
    }

    public MyPut(String row, long ts) {
        super(Bytes.toBytes(row), ts);
    }

    public Put addColumn(String family, String qualifier, String value) {
        return super.addColumn(Bytes.toBytes(family), Bytes.toBytes(qualifier), Bytes.toBytes(value));
    }

    public Put addColumn(String family, String qualifier, String value,long ts) {
        return super.addColumn(Bytes.toBytes(family), Bytes.toBytes(qualifier), ts, Bytes.toBytes(value));
    }
}
